package cn.wxt.ssmtemplete.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import cn.wxt.ssmtemplete.dao.UserDao;
import cn.wxt.ssmtemplete.model.User;
import cn.wxt.ssmtemplete.service.UserService;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userdao;
    
    public User selectUser(int id) {
        return this.userdao.findUserById(id);
    }

}
